package com.qfedu.repo.bean;

/**
 * @author a1275872671
 * @version v1.0
 * @project QfeduJava2401
 * @package com.qfedu.repo.bean
 * @company
 * @date 2024/5/8 10:15
 * 产品实体类 对应数据库的产品
 *
 */
public class Product {
    private Integer id;
    private String pno;
    private String pname;
    private String paddr;
    private String pdate;
    private String enterDate;
    private Integer pNumber;

    public Product() {
    }

    public Product(Integer id, String pno, String pname, String paddr, String pdate, String enterDate, Integer pNumber) {
        this.id = id;
        this.pno = pno;
        this.pname = pname;
        this.paddr = paddr;
        this.pdate = pdate;
        this.enterDate = enterDate;
        this.pNumber = pNumber;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getPaddr() {
        return paddr;
    }

    public void setPaddr(String paddr) {
        this.paddr = paddr;
    }

    public String getPdate() {
        return pdate;
    }

    public void setPdate(String pdate) {
        this.pdate = pdate;
    }

    public String getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(String enterDate) {
        this.enterDate = enterDate;
    }

    public Integer getpNumber() {
        return pNumber;
    }

    public void setpNumber(Integer pNumber) {
        this.pNumber = pNumber;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", pno='" + pno + '\'' +
                ", pname='" + pname + '\'' +
                ", paddr='" + paddr + '\'' +
                ", pdate='" + pdate + '\'' +
                ", enterDate='" + enterDate + '\'' +
                ", pNumber=" + pNumber +
                '}';
    }
}
